import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// 引入element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { Camera } from '@element-plus/icons-vue'

import 'vue-cropper/dist/index.css'

// 引入cookies
import VueCookies from 'vue-cookies'

import Verify from '@/utils/Verify'
import Message from '@/utils/Message'
import Request from '@/utils/Request'
import Confirm from '@/utils/Confirm'

// 自定义组建
import Dialog from '@/components/Dialog.vue'
import Table from '@/components/Table.vue'
import FormDialog from './components/FormDialog.vue'

const app = createApp(App)
app.use(ElementPlus)
app.use(router)

app.component('Dialog', Dialog)
app.component('Table', Table)
app.component('Camera', Camera)
app.component('FormDialog', FormDialog)

app.config.globalProperties.Verfiy = Verify
app.config.globalProperties.Message = Message
app.config.globalProperties.Confirm = Confirm
app.config.globalProperties.Request = Request
app.config.globalProperties.VueCookies = VueCookies
app.mount('#app')
